import { Toast } from "antd-mobile";
import request from "@/api/request";

/**
 * 获取支付结果详情
 * @param {Object} params - 订单ID等参数
 * @returns {Promise} 返回数据
 */
export const onOrderDetail = async (data = {}) => {
  Toast.show({
    icon: "loading",
    maskClickable: false,
  });
  const ret = await request({
    url: "/member/orderDetail",
    method: "post",
    data,
  });
  Toast.clear();
  return ret;
};
